﻿@{
    Layout = null;
    var c = (Session["User"] as LeEdu.MODEL.UserInfo);
    LeEdu.MODEL.Courses co = ViewBag.list1;
    LeEdu.BLL.NoteBLL notebll = new LeEdu.BLL.NoteBLL();
    LeEdu.MODEL.Note n = ViewBag.note;
    var hourid = ViewBag.hourid;


}

<!DOCTYPE html>

<!-- saved from url=(0043)http://boolan.com/course/section/1000000163 -->
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="baidu-site-verification" content="KvVr95tdga">
    <link rel="icon" href="http://boolan.com/favicon.ico" type="image/x-icon">
    <link rel="shortcut icon" href="http://boolan.com/favicon.ico" type="image/x-icon">
    <link href="~/Content/css/common.css" rel="stylesheet" />
    <link href="~/Content/css/shared.min.css" rel="stylesheet" />

    <script src="http://hm.baidu.com/hm.js?cb581c4d338ec0f3b1ae74d12dad369a"></script>
    <script src="~/Content/js/jquery.min.js" type="text/javascript"></script>
    <script src="~/Content/js/user.js"></script>

    <title>C#设计模式-1.设计模式简介 | 博览网 Boolan</title>
    <link href="~/Content/css/play.css" rel="stylesheet" />
    <link href="~/Content/css/playQuestion.css" rel="stylesheet" />


    <script>
        var _hmt = _hmt || [];
        (function () {
            var hm = document.createElement("script");
            hm.src = "//hm.baidu.com/hm.js?cb581c4d338ec0f3b1ae74d12dad369a";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();

  
        //TODO:wrm
        function Save() {
      

            var f = $('#f1').serialize();

            if ($('#ID').val() == 0 || $('#ID').val() == null) {
                //添加笔记
                $.post('/Home/SaveNote', f, function (data) {
                    if (data == 1) {
                       
                        alert('保存成功');
                        //走点击笔记选项卡可以还保持在笔记页面
                        bj();
                        location.href = '/Home/VideoPlay/@ViewBag.hourid';
                    }
                });
            }
            else {
                //修改笔记
                $.post('/Home/EditNote', f, function (data) {
                    if (data == 1) {
                       
                        alert('保存成功');
                        //走点击笔记选项卡可以还保持在笔记页面
                        bj();
                        location.href = '/Home/VideoPlay/@ViewBag.hourid';
                    }
                });
            }
        }
    </script>
    <script src="./C#设计模式-1.设计模式简介 _ 博览网 Boolan_files/saved_resource" type="text/javascript"></script>
</head>
<body>
    <div>
        <div id="play-wrapper">
            <div id="play-content">
                <div>
                    <video id="example_video_1" class="video-js vjs-default-skin" controls preload="none" width="900" height="600"
                           poster="~/Models/Desert.jpg"
                           @*data-setup='{"example_option":true}'*@
                           data-setup="{techOrder: [' flash',' html5'] }">
                        <!--{使用flase播放 techOrder: [' flash',' html5']}-->
                        <source src="~/upload/iamges/@ViewBag.hours.HVideo" type="video/mp4" />
                       
                        @*<source src="~/upload/iamges/16-06-23.mp4/Video_2016-06-20%e6%9d%8e%e8%b6%8a.mp4" type="video/mp4" />*@
                        
                        <source src="~/upload/iamges/" type='video/webm' />
                        <source src="~/upload/iamges/" type='video/ogg' />
                        @*<track kind="captions" src="~/Content/Vidio.js/demo.captions.vtt" srclang="en" label="English">
                        <track kind="subtitles" src="~/Content/Vidio.js/demo.captions.vtt" srclang="en" label="English">*@
                        <track kind="captions" src="~/Content/demo.captions.vtt" srclang="en" label="English">
                        <track kind="subtitles" src="~/Content/demo.captions.vtt" srclang="en" label="English">
                    </video>
                </div>
                <div id="play-slidebar-toggle" class="slidebar-toggle to-right"></div>
                <div id="play-content-right">
                    @*课程名称 教师*@
                    <div id="play-outline-header">
                        <div id="outline-header-title">
                          课程：  @co.CTitle
                        </div>
                        <div id="outline-header-author" class="content14">主讲人： @co.UserInfo.XingMing</div>                      
                    </div>
                    <div id="play-selecttag">
                        <div id="play-outline-tag" class="play-outline-tag-select">课时列表</div>
                        <div id="play-question-tag" class="play-question-tag">讲师答疑</div>
                        <div id="play-onte-tag" class="play-onte-tag" onclick="bj()">笔记</div>
                        <div class="clearBoth"></div>
                    </div>
                    @*课时列表*@
                    <div id="play-outline-content">
                        @foreach (var item in ViewBag.hours1 as List<LeEdu.MODEL.Hour>)
                        {
                            <a href="/Home/VideoPlay/@item.HourId">
                                <div class="@(hourid == item.HourId ? "play-outline-linkable_selected outlineItemTry" : "play-outline-linkable outlineItemTry")">@item.HTitle </div>
                            </a>
                        }
                    </div>
                    @*讲师答疑*@
                    <div id="play-question-content" style="visibility:hidden;">
                        <div id="play-questions">
                            <div class="question-item">
                                <div>
                                    <span class="question-answered">已回答</span>
                                    <pre class="question-contents" id="question-folder-3411">老师你好。知道你忙，但是也不能是这种更新进度呀！
怎么说我们也是付费用户，现在的...<span class="unfolder-button" targetid="3411"> </span></pre>
                                    <pre class="question-contents" id="question-unfolder-3411" style="display:none">老师你好。知道你忙，但是也不能是这种更新进度呀！
怎么说我们也是付费用户，现在的跟新进度跟你之前说的天差地别！
希望能看到，为我们考虑下。<span class="folder-button" targetid="3411"> </span></pre>
                                </div>
                                <div class="question-info">
                                    <div class="question-info-left">
                                        <div target="question-answers-3411" class="question-answer-expender">讨论( 1 )</div>
                                    </div>
                                    <div class="question-info-right">
                                        <span class="question-time">09-14 23:41</span>
                                        <span class="question-username">水又凉了</span>
                                    </div>
                                    <div class="clearBoth"></div>
                                </div>
                                <div class="question-answers" id="question-answers-3411" style="display: none;">
                                    <div class="question-triangle"></div>
                                    <div class="question-answers-item">
                                        <div class="question-answer">
                                            <div class="question-answer-content">
                                                很抱歉，因为各种非常棘手的原因，在更新上让大家失望了。10月份更新完毕。如果等不急的同学，可以找客服退费。真的很抱歉。谢谢理解。
                                            </div>
                                            <div class="question-answer-info">
                                                <span class="question-time">09-22 23:43</span>
                                                <span class="question-username">李建忠</span>
                                            </div>
                                        </div>

                                        <a href="http://boolan.com/course/question/3411" target="_blank">
                                            <div class="question-join-button" question-id="3411">参与讨论</div>
                                        </a>
                                        <div class="clearBoth"></div>
                                    </div>
                                </div>
                            </div>
                            <div class="question-item">
                                <div>
                                    <span class="question-answered">已回答</span>
                                    <pre class="question-contents">课程里面说会提供C++代码的，现在还没有额</pre>
                                </div>
                                <div class="question-info">
                                    <div class="question-info-left">
                                        <div target="question-answers-268" class="question-answer-expender">讨论( 2 )</div>
                                    </div>
                                    <div class="question-info-right">
                                        <span class="question-time">05-14 11:12</span>
                                        <span class="question-username">学徒jy</span>
                                    </div>
                                    <div class="clearBoth"></div>
                                </div>
                                <div class="question-answers" id="question-answers-268" style="display: none;">
                                    <div class="question-triangle"></div>
                                    <div class="question-answers-item">
                                        <div class="question-answer">
                                            <div class="question-answer-content">
                                                我打算录完这个，会继续录一个C++设计模式 和 Java设计模式。届时会同时提供各个平台的代码。
                                            </div>
                                            <div class="question-answer-info">
                                                <span class="question-time">05-16 10:52</span>
                                                <span class="question-username">李建忠</span>
                                            </div>
                                        </div>
                                        <div class="question-answer">
                                            <div class="question-answer-content">
                                                那我应该等着C++设计模式的，看这个还要去学学C#
                                            </div>
                                            <div class="question-answer-info">
                                                <span class="question-time">05-17 19:14</span>
                                                <span class="question-username">学徒jy</span>
                                            </div>
                                        </div>

                                        <a href="http://boolan.com/course/question/268" target="_blank">
                                            <div class="question-join-button" question-id="268">参与讨论</div>
                                        </a>
                                        <div class="clearBoth"></div>
                                    </div>
                                </div>
                            </div>
                            <div class="question-item">
                                <div>
                                    <span class="question-answered">已回答</span>
                                    <pre class="question-contents">课讲的真的挺好的，希望更新的快些！~</pre>
                                </div>
                                <div class="question-info">
                                    <div class="question-info-left">
                                        <div target="question-answers-245" class="question-answer-expender">讨论( 1 )</div>
                                    </div>
                                    <div class="question-info-right">
                                        <span class="question-time">05-08 23:27</span>
                                        <span class="question-username">chanme</span>
                                    </div>
                                    <div class="clearBoth"></div>
                                </div>
                                <div class="question-answers" id="question-answers-245" style="display: none;">
                                    <div class="question-triangle"></div>
                                    <div class="question-answers-item">
                                        <div class="question-answer">
                                            <div class="question-answer-content">
                                                谢谢，目前规划5月底可以录完。
                                            </div>
                                            <div class="question-answer-info">
                                                <span class="question-time">05-16 10:54</span>
                                                <span class="question-username">李建忠</span>
                                            </div>
                                        </div>

                                        <a href="http://boolan.com/course/question/245" target="_blank">
                                            <div class="question-join-button" question-id="245">参与讨论</div>
                                        </a>
                                        <div class="clearBoth"></div>
                                    </div>
                                </div>
                            </div>
                            <div class="question-item">
                                <div>
                                    <span class="question-answered">已回答</span>
                                    <pre class="question-contents">建议增加笔记功能</pre>
                                </div>
                                <div class="question-info">
                                    <div class="question-info-left">
                                        <div target="question-answers-211" class="question-answer-expender">讨论( 1 )</div>
                                    </div>
                                    <div class="question-info-right">
                                        <span class="question-time">05-01 19:43</span>
                                        <span class="question-username">向晚</span>
                                    </div>
                                    <div class="clearBoth"></div>
                                </div>
                                <div class="question-answers" id="question-answers-211" style="display: none;">
                                    <div class="question-triangle"></div>
                                    <div class="question-answers-item">
                                        <div class="question-answer">
                                            <div class="question-answer-content">
                                                谢谢建议，可否邮件我们（service@boolan.com）详细说下亲期待的笔记功能？
                                            </div>
                                            <div class="question-answer-info">
                                                <span class="question-time">05-05 16:58</span>
                                                <span class="question-username">Boolan</span>
                                            </div>
                                        </div>

                                        <a href="http://boolan.com/course/question/211" target="_blank">
                                            <div class="question-join-button" question-id="211">参与讨论</div>
                                        </a>
                                        <div class="clearBoth"></div>
                                    </div>
                                </div>
                            </div>
                            <div class="question-item">
                                <div>
                                    <span class="question-answered">已回答</span>
                                    <pre class="question-contents">课程是真好， 唯一的希望时快点结束， 好接着学MVC EF等。</pre>
                                </div>
                                <div class="question-info">
                                    <div class="question-info-left">
                                        <div target="question-answers-175" class="question-answer-expender">讨论( 3 )</div>
                                    </div>
                                    <div class="question-info-right">
                                        <span class="question-time">04-24 08:02</span>
                                        <span class="question-username">freely</span>
                                    </div>
                                    <div class="clearBoth"></div>
                                </div>
                                <div class="question-answers" id="question-answers-175" style="display: none;">
                                    <div class="question-triangle"></div>
                                    <div class="question-answers-item">
                                        <div class="question-answer">
                                            <div class="question-answer-content">
                                                是的，同时希望老师更新课程的时候顺便把代码更新上来，复习的时候在回味下代码！
                                            </div>
                                            <div class="question-answer-info">
                                                <span class="question-time">04-24 14:57</span>
                                                <span class="question-username">txwz</span>
                                            </div>
                                        </div>
                                        <div class="question-answer">
                                            <div class="question-answer-content">
                                                谢谢大家的意见，正在提速中
                                            </div>
                                            <div class="question-answer-info">
                                                <span class="question-time">04-28 15:02</span>
                                                <span class="question-username">李建忠</span>
                                            </div>
                                        </div>
                                        <div class="question-answer">
                                            <div class="question-answer-content">
                                                代码管理员会上传（我还没权限:) ）
                                            </div>
                                            <div class="question-answer-info">
                                                <span class="question-time">04-28 23:58</span>
                                                <span class="question-username">李建忠</span>
                                            </div>
                                        </div>

                                        <a href="http://boolan.com/course/question/175" target="_blank">
                                            <div class="question-join-button" question-id="175">参与讨论</div>
                                        </a>
                                        <div class="clearBoth"></div>
                                    </div>
                                </div>
                            </div>
                            <div class="question-item">
                                <div>
                                    <span class="question-answered">已回答</span>
                                    <pre class="question-contents" id="question-folder-154">怕太监，特地购买了课程。
以前看过李老师在msdn上的讲座，讲的都很好。
赞！
...<span class="unfolder-button" targetid="154"> </span></pre>
                                    <pre class="question-contents" id="question-unfolder-154" style="display:none">怕太监，特地购买了课程。
以前看过李老师在msdn上的讲座，讲的都很好。
赞！
支持！<span class="folder-button" targetid="154"> </span></pre>
                                </div>
                                <div class="question-info">
                                    <div class="question-info-left">
                                        <div target="question-answers-154" class="question-answer-expender">讨论( 2 )</div>
                                    </div>
                                    <div class="question-info-right">
                                        <span class="question-time">04-18 17:04</span>
                                        <span class="question-username">向晚</span>
                                    </div>
                                    <div class="clearBoth"></div>
                                </div>
                                <div class="question-answers" id="question-answers-154" style="display: none;">
                                    <div class="question-triangle"></div>
                                    <div class="question-answers-item">
                                        <div class="question-answer">
                                            <div class="question-answer-content">
                                                太监是？谢谢支持
                                            </div>
                                            <div class="question-answer-info">
                                                <span class="question-time">04-19 09:39</span>
                                                <span class="question-username">李建忠</span>
                                            </div>
                                        </div>
                                        <div class="question-answer">
                                            <div class="question-answer-content">
                                                就是不再更新的意思
                                            </div>
                                            <div class="question-answer-info">
                                                <span class="question-time">04-19 12:47</span>
                                                <span class="question-username">向晚</span>
                                            </div>
                                        </div>

                                        <a href="http://boolan.com/course/question/154" target="_blank">
                                            <div class="question-join-button" question-id="154">参与讨论</div>
                                        </a>
                                        <div class="clearBoth"></div>
                                    </div>
                                </div>
                            </div>
                            <div class="question-item">
                                <div>
                                    <span class="question-answered">已回答</span>
                                    <pre class="question-contents">大概什么时候可以出完</pre>
                                </div>
                                <div class="question-info">
                                    <div class="question-info-left">
                                        <div target="question-answers-147" class="question-answer-expender">讨论( 1 )</div>
                                    </div>
                                    <div class="question-info-right">
                                        <span class="question-time">04-13 15:20</span>
                                        <span class="question-username">xunhao</span>
                                    </div>
                                    <div class="clearBoth"></div>
                                </div>
                                <div class="question-answers" id="question-answers-147" style="display: none;">
                                    <div class="question-triangle"></div>
                                    <div class="question-answers-item">
                                        <div class="question-answer">
                                            <div class="question-answer-content">
                                                5月份肯定完。前两周忙产品发布会，后面会速度更新。谢谢！
                                            </div>
                                            <div class="question-answer-info">
                                                <span class="question-time">04-19 09:40</span>
                                                <span class="question-username">李建忠</span>
                                            </div>
                                        </div>

                                        <a href="http://boolan.com/course/question/147" target="_blank">
                                            <div class="question-join-button" question-id="147">参与讨论</div>
                                        </a>
                                        <div class="clearBoth"></div>
                                    </div>
                                </div>
                            </div>
                            <div class="question-item">
                                <div>
                                    <span class="question-answered">已回答</span>
                                    <pre class="question-contents">请有发票吗，开成图书可以报销的我们</pre>
                                </div>
                                <div class="question-info">
                                    <div class="question-info-left">
                                        <div target="question-answers-125" class="question-answer-expender">讨论( 1 )</div>
                                    </div>
                                    <div class="question-info-right">
                                        <span class="question-time">04-03 12:21</span>
                                        <span class="question-username">freely</span>
                                    </div>
                                    <div class="clearBoth"></div>
                                </div>
                                <div class="question-answers" id="question-answers-125" style="display: none;">
                                    <div class="question-triangle"></div>
                                    <div class="question-answers-item">
                                        <div class="question-answer">
                                            <div class="question-answer-content">
                                                可以开发票，亲直接加QQ：281101184 联系我们工作人员即可。
                                            </div>
                                            <div class="question-answer-info">
                                                <span class="question-time">04-28 02:03</span>
                                                <span class="question-username">Boolan</span>
                                            </div>
                                        </div>

                                        <a href="http://boolan.com/course/question/125" target="_blank">
                                            <div class="question-join-button" question-id="125">参与讨论</div>
                                        </a>
                                        <div class="clearBoth"></div>
                                    </div>
                                </div>
                            </div>
                            <div class="question-item">
                                <div>
                                    <span class="question-answered">已回答</span>
                                    <pre class="question-contents">请问该系列课程大概什么时间可以全部出完？谢谢</pre>
                                </div>
                                <div class="question-info">
                                    <div class="question-info-left">
                                        <div target="question-answers-40" class="question-answer-expender">讨论( 2 )</div>
                                    </div>
                                    <div class="question-info-right">
                                        <span class="question-time">02-24 22:02</span>
                                        <span class="question-username">oec2003</span>
                                    </div>
                                    <div class="clearBoth"></div>
                                </div>
                                <div class="question-answers" id="question-answers-40" style="display: none;">
                                    <div class="question-triangle"></div>
                                    <div class="question-answers-item">
                                        <div class="question-answer">
                                            <div class="question-answer-content">
                                                oec2003，你好！还需要两周左右，3月中旬。
                                            </div>
                                            <div class="question-answer-info">
                                                <span class="question-time">02-25 03:08</span>
                                                <span class="question-username">李建忠</span>
                                            </div>
                                        </div>
                                        <div class="question-answer">
                                            <div class="question-answer-content">
                                                李老师，您好！请问这个课程什么时间能全部上架？
                                            </div>
                                            <div class="question-answer-info">
                                                <span class="question-time">07-13 08:51</span>
                                                <span class="question-username">JamesYu</span>
                                            </div>
                                        </div>

                                        <a href="http://boolan.com/course/question/40" target="_blank">
                                            <div class="question-join-button" question-id="40">参与讨论</div>
                                        </a>
                                        <div class="clearBoth"></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div id="play-question-buttons">
                            <div id="play-question-ask">我有问题</div>
                            <a href="/Home/question" target="_blank">
                                <div id="play-question-all">查看全部问题</div>
                            </a>
                        </div>
                    </div>
                    @*笔记*@
                    @if (c != null)
                    { 
                       <div id="play-onte-content">

                        <form id="f1">
                            @if (n != null)
                            {
                                <input value="@n.ID" name="ID" id="ID" type="hidden" />
                            }
                            else
                            {
                                <input value="" name="ID" id="ID" type="hidden" />
                            }

                            <input value="@c.UserInfoId" name="UserInfoId" id="UserInfoId" type="hidden" />
                            <input value="@hourid" name="HourId" id="HourId" type="hidden" />
                            <input value="@co.CoursesId" name="CoursesID" id="CoursesID" type="hidden" />

                            <textarea id="play-ask-textarea1" placeholder="笔记......" name="NoteContent">@(n != null ? n.NoteContent : "")</textarea><br />
                            <input type="checkbox" value="1" name="Share" checked="checked" style="margin-left: 15px" />
                            <span style="font-family: 'Microsoft YaHei'; color: white">分享笔记</span><br />
                            <input type="button" id="play-ask-submit-button1" value="保存笔记" onclick="Save()" />
                        </form>
                    </div>
                    }
                 else
                    { 
                     <div id="play-onte-content">
                         
                    <div style="margin-top:120px;margin-left:100px" ><span style ="font-family: 'Microsoft YaHei'; color: white">请先进行</span><a href="/Login/Index" style="font-family: 'Microsoft YaHei'; color:#ff0000"> 登录 </a> </div>
                     </div>
                    
                    }
                </div>
            </div>
        </div>
        <div id="play-cover" style="visibility: hidden">
            <div id="play-ask-content">
                <textarea id="play-ask-textarea" maxlength="500"></textarea>
                <div id="play-ask-button-content">
                    <div id="play-ask-text-number">剩余字数500字</div>
                    <div id="play-ask-submit-button">发布</div>
                    <div id="play-message">文字不能为空</div>
                </div>
            </div>
        </div>
        <input type="hidden" value="24" id="seriesCourseID">
        <input type="hidden" value="163" id="sectionID">
        <script>
            var pptPlayer;
            var player = undefined;
            var isPlaying = false;
            var watchSummary = null;
            $().ready(function () {
                try {
                    ppliveplayer.addVideo({ 'id': 155239297, 'cid': 76453, 'o': 158, 'cpimg': 'http://v.img.pplive.cn/cp160//f2/9b/f29ba9d884c4daa9bc32ad5155239297/1.jpg', 'autoplay': 1 }, 'play-player');
                }
                catch (e) {
                }
            });


        </script>

    </div>
    <script src="~/Content/js/play.js"></script>
</body>
</html>
